package com;

public class Math implements IMath{
	//加
	public int add(int n1,int n2){
		int result=n1+n2;
		System.out.println(n1+"+"+n2+"="+result);
		return result;
	}

	//减
	public int sub(int n1,int n2){
		int result=n1-n2;
		System.out.println(n1+"-"+n2+"="+result);
		return result;
	}

	public void show(){
		System.out.println("啊哈哈哈哈");
	}
}
